import { post, postWithLoadTip, get } from '@/utils/request';

export default {
  /**
   * 培训信息统计
   *
   * @returns 返回一个Promise对象，解析后得到当前用户的信息
   */
  getTrainStatistics() {
    return get(`/pxks-api/screen/trainStatistics`, undefined);
  },

  //培训类型占比
  getTrainTypeRate() {
    return get(`/pxks-api/screen/trainTypeRate`, undefined);
  },

  //子公司培训合格率
  getSubCompanyTrainPassRate() {
    return get(`/pxks-api/screen/subCompanyTrainPassRate`, undefined);
  },

  //参与培训总人次
  getTrainTotalCount() {
    return get(`/pxks-api/screen/trainTotalCount`, undefined);
  },

  // 考试相关信息
  getExamStatistics() {
    return get(`/pxks-api/screen/examStatistics`, undefined);
  }
};
